@mixin list($fontsize,$height:40px,$width:150px,$padding:30px,$bg:#333,$ioheight:0px,$iowidth:14px,$ioright:20px,$iobg:red){
    li{
        list-style: none;
        height: $height;
        font-size: $fontsize;
        vertical-align: top;
       
        a{
            display: inline-block;
            $padding_top : ($height - $fontsize)/2; 
            height: $height - $padding_top;
            padding: $padding_top $padding 0;
            vertical-align: top;
            width: $width;
            
        }
        a.active,a:hover{
            background: $bg;
        }

        @if $ioheight != '0px' {
            i.ico{
                font-size: 0;
                display: inline-block;
                line-height: $ioheight;
                height: $ioheight;
                width: $iowidth;
                right: $ioright + $iowidth;
                top: ($height - $ioheight)/2;
                background: $iobg;
                position: relative;
                z-index: 1000;
            }
        }
    }
}



